import axios from '@/api/fetch';
import SERVER from '@/api/server';
// 预警信息查询
export const retriveEarlyWarning = params =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/order/repair/retriveEarlyWarning`, {
    params
  });

// 监控信息
export const retriveByControlright = params =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/order/repair/retriveByControlright`, {
    params
  });
// 提示信息
export const retriveByControl = params =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/order/repair/retriveByControl`, {
    params
  });
// 可参加活动
export const queryActivityValid = params =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/order/repair/queryActivityValid`, {
    params
  });
// 已参加活动
export const queryActivityResult = params =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/order/repair/queryActivityResult`, {
    params
  });
// 预约安排
export const queryBookingOrder = params =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/order/repair/queryBookingOrderAll`, {
    params
  });

// 出险信息 去掉林肯客制化功能
export const queryOccurInsuranceByLicenseOrVin = params =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/repair/queryOccurInsuranceByLicenseOrVin`, {
    params
  });
// 新能源预警 去掉林肯客制化功能
export const newEnergyWarning = params =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/newEnergyWarning`, {
    params
  });

// 预约单维修项目
export const findBookingOrderLabour = (bookingOrderNo, params) =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/order/repair/findBookingOrderLabour/${bookingOrderNo}`, {
    params
  });
// 预约单维修材料
export const queryPartBookingInfo = (bookingOrderNo, params) =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/order/repair/queryPartBookingInfo/${bookingOrderNo}`, {
    params
  });
// 预约单附加项目
export const queryAddItemBooking = (bookingOrderNo, params) =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/order/repair/queryAddItemBooking/${bookingOrderNo}`, {
    params
  });
// 预约单维修工具
export const queryAddToolBooking = (bookingOrderNo, params) =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/order/repair/queryAddToolBooking/${bookingOrderNo}`, {
    params
  });
// 维修类型
export const getWxlxSelect = params =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/basedataRepairtypes/findAllRepairType`, {
    params
  });

// 查询车辆信息
export const searchMobile = phone => axios.get(`${SERVER.DMSCLOUD_REPAIR}/brithdayRemind/searchMobile/${phone}`, {});

// 获取保险最后到期日
export const queryEndate = params =>
  axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/basedata/insuranceCo/insurance/endDate`, {
    params
  });
// 获取尊享悦享信息
export const getServicePackageZXYX = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/order/servicePackage/getServicePackageZXYX`, { params });
